/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.jastrzab.flashlight;

import android.content.Context;
import android.content.Intent;

/**
 *
 * @author Jastrzab
 */
public final class Intents {

	public static final String UPDATE = "android.appwidget.action.APPWIDGET_UPDATE";
	public static final String NOTIFY = "android.appwidget.action.APPWIDGET_NOTIFY";
	public static final String WIDGET = "android.appwidget.action.APPWIDGET_WIDGET";

	public static Intent getWidget(Context context) {
		Intent intent = new Intent(context, Switcher.class);
		intent.setAction(Intents.NOTIFY);
		return intent;
	}

	public static Intent getService(Context context, String action) {
		Intent intent = new Intent(context, Light.class);
		if (action != null) {
			intent.setAction(action);
		}
		return intent;
	}

}
